package com.xy.biz.ts.domain.req;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class SaveRandomExaminationPaperRequest {

    /**
     * 试卷名称
     */
    @NotBlank
    @Length(max=200)
    private String examinationPaperName;
    /**
     * 试卷分类
     */
    @NotBlank @Length(max=20)
    private String category;

    /**
     * 总分
     */
    @NotNull
    private Integer totalScore;
    /**
     * 通过分数
     */
    @NotNull
    private Integer passScore;
    /**
     * 考试时长（分）
     */
    @NotNull
    private Integer duration;
    /**
     * 封面
     */
    @Length(max=255)
    private String cover;
    /**
     * 允许考试次数
     */
    @NotNull
    private Integer numberOfExamsAllowed;

}
